mir: Print hscroll and vscroll values when debugging.
authorCemil Azizoglu <cemil.azizoglu@canonical.com>
Thu, 15 Oct 2015 17:11:36 +0000 (12:11 -0500)
committerWilliam Hua <william.hua@canonical.com>
Mon, 2 Nov 2015 15:46:37 +0000 (10:46 -0500)
Signed-off-by: William Hua <william.hua@canonical.com>
gdk/mir/gdkmir-debug.c

index 6a2bc18e1badf5cbdaa7f6d7886b14ce5438c19d..83551674b75a8313fe634f38518d332b61f9d3b3 100644 (file)
@@ -195,6 +195,8 @@ _gdk_mir_print_motion_event (const MirInputEvent *event)
   g_printerr ("\n");
   g_printerr (" Offset (%f, %f)\n", mir_pointer_event_axis_value (pointer_event, mir_pointer_axis_x),
                                     mir_pointer_event_axis_value (pointer_event, mir_pointer_axis_y));
+  g_printerr (" Scroll (%f, %f)\n", mir_pointer_event_axis_value (pointer_event, mir_pointer_axis_hscroll),
+                                    mir_pointer_event_axis_value (pointer_event, mir_pointer_axis_vscroll));
   g_printerr (" Event Time %lli\n", (long long int) mir_input_event_get_event_time (event));
 }